<template>
    <div id="content">
        <!--轮播-->
        <mt-swipe :auto="4000">
            <mt-swipe-item v-for="(imgData,key) in swipeItemList.message" :key="key">
                <img :src="imgData.img" alt="">
            </mt-swipe-item>
        </mt-swipe>
        <!--九宫格-->
        <ul class="mui-table-view mui-grid-view mui-grid-9">
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/news">
                <span class="mui-icon mui-icon-home"></span>
                <div class="mui-media-body">新闻</div></router-link></li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-email"><span class="mui-badge">5</span></span>
                <div class="mui-media-body">Email</div></a></li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-chatbubble"></span>
                <div class="mui-media-body">Chat</div></a></li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-location"></span>
                <div class="mui-media-body">location</div></a></li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-search"></span>
                <div class="mui-media-body">Search</div></a></li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-phone"></span>
                <div class="mui-media-body">Phone</div></a></li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-gear"></span>
                <div class="mui-media-body">Setting</div></a></li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-info"></span>
                <div class="mui-media-body">about</div></a></li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-more"></span>
                <div class="mui-media-body">more</div></a></li>
        </ul>
    </div>
</template>
<style scoped>
    /*轮播*/
    .mint-swipe{
        height: 190px;
    }
    .mint-swipe-item{
        height: 190px;
        width: 100%;
    }
    .mint-swipe-item img{
        width: 100%;
    }
    /*九宫格*/
    .mui-grid-view.mui-grid-9{
        background-color: #fff;
        border:0;
    }
    .mui-grid-view.mui-grid-9 .mui-table-view-cell{
        border:0;
    }
</style>
<script>
    export default{
        data(){
            return {
                swipeItemList:{}

            }
        },
        methods:{
           getswiper:function(){
               let url='http://182.254.146.100:8899/api/getlunbo';
               this.$http.get(url)
                   .then((data)=>{
                    this.swipeItemList=data.body;
                   })

           }
        },
        created(){
            this.getswiper()
        }

    }
</script>
